package com.intelligent.dto;


import lombok.Data;
import javax.validation.constraints.Pattern;

@Data
public class SmsCodeLoginDTO {
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    @Pattern(regexp = "^\\d{6}$", message = "验证码必须是6位数字")
    private String code;
}
